package com.maila.calltaxi_driver.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.widget.ExpandableListView;
import android.widget.TextView;

import com.maila.calltaxi_driver.R;
import com.maila.calltaxi_driver.adapter.AllOrderRecordAdapter;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/7/7.
 */

public class OrderRecodeActivity extends AppCompatActivity {
    AllOrderRecordAdapter aorAdapter;
    @BindView(R.id.return_iv)
    AutoRelativeLayout returnIv;
    @BindView(R.id.title_login)
    TextView titleLogin;
    @BindView(R.id.rl_title)
    AutoRelativeLayout rlTitle;
    @BindView(R.id.elv_transaction)
    ExpandableListView elvTransaction;
    @BindView(R.id.mSwipeRefreshLayout)
    SwipeRefreshLayout mSwipeRefreshLayout;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.order_recode_activity);
        ButterKnife.bind(this);
        aorAdapter=new AllOrderRecordAdapter(this);
        elvTransaction.setAdapter(aorAdapter);
        for (int i = 0; i < 12; i++) {
            elvTransaction.expandGroup(i);
        }
    }

    @OnClick(R.id.return_iv)
    public void onViewClicked() {
        finish();
    }
}
